<?php

    $rootDir = $_SERVER['DOCUMENT_ROOT'];

    require_once($rootDir.'/classes/LeproHelper.class.php');
    
    $logincode = urldecode($_GET['lc']);
    if ((preg_match("/^[A-Za-z0-9]{16}$/", $logincode) > 0)) {
    	header('Content-type: image/png');    	
        echo LeproHelper::getCaptcha($logincode);
    } else {
        echo ":(";
    }
    

?>
